


namespace Core.Extensions
{
    using System;
    using System.Collections.Generic;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Resources;

    /// <summary>
    /// Advanced optics Extension class
    /// </summary>
    
    public sealed class AdvancedOptics: ExtensionBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Extensions.AdvancedOptics"/> class.
        /// </summary>
        public AdvancedOptics()
            : base(
                Traduction.extensions_advanced_optics, 
                ExtensionGroupsEnum.WeaponUsage,
                4,
                0, 
                new ExtensionCost(80000,0),
                new ICondition<IExtension>[] {new ExtensionCondition<GeneralFiring>(3),new ExtensionCondition<BasicOptics>(5)} )
        {
            Modifiers = new IModifier[] {new Modifier(FeatureTypesEnum.Module, FeaturesEnum.MediumLaserDamage, 0.03)};
        }

        /// <summary>
        /// Obtains the extension description
        /// </summary>
        public override string Description
        {
            get { return Traduction.extensions_advanced_optics_description; }
        }
    }
}